@import "../../styles/index.scss";

#le-message-wrapper {
  position: fixed;
  top: 20px;
  z-index: $messageZIndex;
  width: 100%;
}

.le-message {
  text-align: center;
  margin-bottom: 10px;

  .toast_main {
    display: inline-flex;
    box-shadow: $messageBoxShadow;
    pointer-events: all;
    background: #fff;
    padding: 10px 16px;
    font-size: $fontSize;
    animation: fadeIn linear 200ms;
    justify-content: space-between;
    align-items: center;
    min-width: 100px;
    .main_left {
      display: flex;
      justify-content: center;
      align-items: center;
      .icon {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-right: 2px;
      }
      .content {
        margin-bottom: 2px;
      }
    }
    .main_right {
      .close {
        width: 14px;
        // height: 14px;
        margin-left: 2px;
        cursor: pointer;
        .le-icon {
          width: 14px;
          height: 14px;
        }
      }
    }
  }

  &.hiddenMessage {
    & .toast_main {
      animation: fadeOut linear 250ms;
    }
  }
}

@keyframes fadeIn {
  0% {
    transform: translateY(-40px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes fadeOut {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-40px);
  }
}
